package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "testPaper")
public class TestPaper extends BaseModel {	//试卷

	private Integer radioCount;     //单选题数量

	private Double radioScore;     //单选题分值

	private String radioBak;     //单选后备题

	private Integer checkCount;     //多选题数量

	private Double checkScore;     //多选题分值

	private String checkBak;     //多选后备题

	private Integer judgeCount;     //判断题数量

	private Double judgeScore;     //判断题分值

	private String judgeBak;     //判断后备题

	private Integer fillCount;     //填空题数量

	private Double fillScore;     //填空题分值

	private String fillBak;     //填空后备题

	private Integer questionCount;     //问答题数量

	private Double questionScore;     //问答题分值

	private String questionBak;     //问答后备题

	@ManyToOne(cascade = CascadeType.REFRESH)
	private User creatorId;     //创建人
}

